<?php

namespace app\modules\Finance\models;

use Yii;

/**
 * This is the model class for table "invoice_company".
 *
 * @property integer $id
 * @property string $company
 * @property string $tax
 * @property string $bank_account
 * @property string $bank_name
 * @property string $address
 * @property string $phone
 */
class InvoiceCompany extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'invoice_company';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['company', 'tax', 'bank_account', 'bank_name', 'address', 'phone'], 'string', 'max' => 128],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app.order', 'ID'),
            'company' => Yii::t('app.order', 'Company'),
            'tax' => Yii::t('app.order', 'Tax'),
            'bank_account' => Yii::t('app.order', 'Bank Account'),
            'bank_name' => Yii::t('app.order', 'Bank Name'),
            'address' => Yii::t('app.order', 'Address'),
            'phone' => Yii::t('app.order', 'Phone'),
        ];
    }
}
